#include <iostream>
using namespace std;

int main ()
{
	int * a;
	try
	{
		a = new int[99999999999];
	}
	catch (bad_alloc)
	{
		cout<<"a fail"<<endl;
	}

	// 脑瘫写法
	int * b = new int[99999999999];
	cout<<"======="<<endl;
	if(b == NULL)
	{
		cout<<"b fail"<<endl;
	}
	else
	{
		cout<<"succeed"<<endl;
	}
	return 0;
}
